﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Principal.Master" AutoEventWireup="true" CodeBehind="ResultadoCotacao.aspx.cs" Inherits="SeguradoraIA.Forms.ResultadoCotacao" %>

<%@ Register Src="~/UserControl/ucBotoesPadrao.ascx" TagName="ucBotoesPadrao" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="uppMaster" runat="server">
        <ContentTemplate>
            <asp:TextBox ID="txtValorGauge" CssClass="valorGauge" runat="server" Style="display: none"></asp:TextBox>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="left" valign="top">
                        <asp:Label runat="server" ID="lblTitulo" class="titulo_pagina" Text="Resultado da Cotação"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="altura50">
                    </td>
                </tr>
                <tr>
                    <td>
                        <center>
                            <div id="chart1div">
                                This text is replaced by the Flash movie.
                            </div>
                            <script type="text/javascript">
                                var chart1 = new FusionCharts("../Scripts/Charts/AngularGauge.swf", "ChId1", "450", "190", "0", "1");

                                var valorGauge = $('.valorGauge')[0].value;

                                var xml = "<chart lowerLimit='0' upperLimit='100' lowerLimitDisplay='Baixo Risco       ' upperLimitDisplay='       Alto Risco' gaugeStartAngle='180' gaugeEndAngle='0' palette='1' numberSuffix='%' tickValueDistance='20' showValue='0'>" +
                                  "<colorRange>" +
                                     "<color minValue='0' maxValue='33' code='8BBA00'/>" +
                                     "<color minValue='33' maxValue='66' code='F6BD0F'/>" +
                                     "<color minValue='66' maxValue='100' code='FF654F'/>" +
                                  "</colorRange>" +
                                  "<dials>" +
                                     "<dial value='" + valorGauge + "' rearExtension='10'/>" +
                                  "</dials>" +
                               "</chart>"

                                chart1.setDataXML(xml);
                                chart1.render("chart1div");
                            </script>
                        </center>
                    </td>
                </tr>
                <tr>
                    <td class="altura50">
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <uc1:ucBotoesPadrao ID="ucBotoesPadrao" runat="server" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
